<template>
    <div class="worp">
        <div class="login-box">
            <div class="login-logo">
                <img src="../../assets/login_login.jpg" width="35" />
                <h1 class="mb-0 ml-2 text-3xl font-bold">一站式纠纷调处平台</h1>
            </div>
            <el-form layout="horizontal" :model="formInline">
                <el-form-item prop="username">
                    <el-input v-model="formInline.username" size="large" placeholder="账号">
                        <template #prefix>
                            <el-icon size="18px">
                                <User />
                            </el-icon>
                        </template>
                    </el-input>
                </el-form-item>
                <el-form-item>
                    <el-input v-model="formInline.password" size="large" type="password" placeholder="密码"
                        autocomplete="new-password">
                        <template #prefix>
                            <el-icon size="18px">
                                <Unlock />
                            </el-icon>
                        </template>
                    </el-input>
                </el-form-item>
                <el-form-item>
                    <el-button style="width: 100%;" type="primary" html-type="submit" size="large" @click="login">
                        登录
                    </el-button>
                </el-form-item>
            </el-form>
        </div>
    </div>
</template>
  
<script setup name="Login">
import { useRouter } from 'vue-router';
import {useStore} from 'vuex';
import { reactive,ref } from 'vue';
const store=useStore()
const router = useRouter()
//获取验证码
//登录
const formInline = reactive({
    username: '13177871881',
    password: '123456',
});


//登录功能哦在这里做
const login = async() => {

    router.push('/Home')
}
</script>
  
<style lang="less" scoped>
.font-bold {
    font-size: 18px;
    line-height: 25px;
}

.worp {
    width: 100vw;
    height: 100vh;
    background-image: url(../../assets/login_bj.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.login-box {
    padding: 20px;
    width: 300px;
    height: 300px;
    background-color: #fff;
    position: absolute;
    left: 80%;
    top: 50%;
    transform: translate(-50%, -50%);

    .login-logo {
        padding-bottom: 40px;
        margin-top: 10px;
        font-size: 12px;
        color: #1E9FFF;

        img {
            margin-left: 40px;
            vertical-align: middle;
            float: left;
        }

        h1 {
            margin-top: 3px;
            text-align: center;
            transform: translate(-20px, 5px);
        }
    }
}

.verifyCode {
    width: 235px;
}

.imger {
    width: 100px;
    height: 38px;
    margin-left: 15px;

    img {
        height: 37px;
        width: 100px;
        vertical-align: middle;
        margin-top: 1px;
        border: 1px solid #999;
    }
}

.checkbox {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.checkbox-p {
    font-size: 16px;
    font-weight: 300px;
}
</style>